package com.coldchain.customer.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * <p>
 * 知识库
 * </p>
 *
 * @author fangliai
 * @since 2018-10-25
 */
@TableName("ch_repository")
public class Repository implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 标题
     */
    private String title;

    /**
     * 缩略图
     */
    private String thumbnail;

    /**
     * 标签
     */
    private String tags;

    /**
     * 分类Id
     */
    @TableField("classifyId")
    private String classifyId;

    /**
     * 内容主体
     */
    private String content;

    /**
     * 阅读次数
     */
    @TableField("redCount")
    private Integer redCount;

    /**
     * 点赞/有用次数
     */
    @TableField("likCount")
    private Integer likCount;

    /**
     * 差评/没用次数
     */
    @TableField("badCount")
    private Integer badCount;

    /**
     * 分享次数
     */
    @TableField("shareCount")
    private Integer shareCount;

    /**
     * 删除标识
     */
    @TableField("deleteFlag")
    private Integer deleteFlag;

    /**
     * 是否启用
     */
    private Integer enable;

    /**
     * 创建时间
     */
    @TableField("createTime")
    private Long createTime;

    /**
     * 创建人
     */
    @TableField("createBy")
    private String createBy;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getThumbnail() {
        return thumbnail;
    }

    public void setThumbnail(String thumbnail) {
        this.thumbnail = thumbnail;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public String getClassifyId() {
        return classifyId;
    }

    public void setClassifyId(String classifyId) {
        this.classifyId = classifyId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getRedCount() {
        return redCount;
    }

    public void setRedCount(Integer redCount) {
        this.redCount = redCount;
    }

    public Integer getLikCount() {
        return likCount;
    }

    public void setLikCount(Integer likCount) {
        this.likCount = likCount;
    }

    public Integer getBadCount() {
        return badCount;
    }

    public void setBadCount(Integer badCount) {
        this.badCount = badCount;
    }

    public Integer getShareCount() {
        return shareCount;
    }

    public void setShareCount(Integer shareCount) {
        this.shareCount = shareCount;
    }

    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    @Override
    public String toString() {
        return "Repository{" +
        "id=" + id +
        ", title=" + title +
        ", thumbnail=" + thumbnail +
        ", tags=" + tags +
        ", classifyId=" + classifyId +
        ", content=" + content +
        ", redCount=" + redCount +
        ", likCount=" + likCount +
        ", badCount=" + badCount +
        ", shareCount=" + shareCount +
        ", deleteFlag=" + deleteFlag +
        ", enable=" + enable +
        ", createTime=" + createTime +
        ", createBy=" + createBy +
        "}";
    }
}
